const { DataTypes } = require('sequelize');
const sequelize = require('../db');

exports.aboutModel = sequelize.define(
	'about',
	{
		url: {
			type: DataTypes.STRING,
			allowNull: false,
			comment: '地址'
		}
	},
	{
		freezeTableName: true,
		deletedAt: true,
		defaultScope: {
			attributes: { exclude: ['createdAt', 'updatedAt'] } // 默认排除 createdAt 和 updatedAt 字段
		}
	}
);
